;export default function (res) {
    $("input.txt-search").on("focus", function () {
        $(this).attr("placeholder", "");
        var html = "";
        // loaddata.init().then(function (res) {
        // console.log(res);
        $.each(res.data, function (index, item) {
            // console.log(item);
            if (item.pcUrl && item.pcUrl !== "") {
                html += `<li class="li-searchKey">
                                <span class="s-keyword">${item.smartWord}</span>
                                <span class="s-keyNumber">约${item.resultCount}个商品</span>
                                <a class="search-tag" href="${item.pcUrl}" target="_blank">专场</a>
                            </li>`;
            }
            else {
                html += `<li class="li-searchKey">
                                <span class="s-keyword">${item.smartWord}</span>
                                <span class="s-keyNumber">约${item.resultCount}个商品</span>
                            </li>`;
            }
        });
        // console.log(html);
        $(".ul-searchKeyList").attr("style", "display:block");
        $(".ul-searchKeyList").html(html);
        // });
    });
    $("input.txt-search").on("blur", function () {
        $(".ul-searchKeyList").attr("style", "display:none");
        $(".ul-searchKeyList").html("");
        $(this).attr("placeholder", "先行者");
    });
    $(".ul-searchKeyList").on("mouseover", ".li-searchKey", function () {
        // console.log(this);
        $(this).addClass("li-searchKeyOver").siblings().removeClass("li-searchKeyOver");
    });
}